<?php
/**
 * Created by PhpStorm.
 * User: ivi
 * Date: 2019/2/24
 * Time: 15:54
 */

namespace App\Http\Requests\Admin\System;

use App\Http\Requests\BaseFormRequest;

class UserSetPasswordFormRequest extends BaseFormRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'password' => ['required', 'between:6,20', 'confirmed']
        ];
    }

    public function messages()
    {
        return __('system.user.validation');
    }
}
